Wiki

Clone wiki

beremiz / How to test Beremiz translation

How to test Beremiz/PLCOpenEditor translation

Testing translation is pretty easy.

  1. Clone Beremiz repository

    hg clone https://bitbucket.org/skvorl/beremiz
    
  2. Go into i18n directory.
    There are some short instruction in README file there.
    Files Messages.pot and app.fil in the repository are up-to-date already.

  3. Download Beremiz resource PO file 'for use' for language you want to test from transifex.com

  4. Place it into i18n directory and rename to 'Beremiz_<your_locale>.po'
    For example,

    mv for_use_beremiz-ide_beremiz_hu_HU.po Beremiz_hu_HU.po
    
  5. Generate MO files by running following command in i18n directory

    python mki18n.py -m --moTarget=../locale --domain=Beremiz
    

    This should create locale/<your_local>/Beremiz.mo file.

  6. Test translation. To do this go to root directory of the repository and run following command(s)

    LC_ALL=<your_locale>.utf-8 ./Beremiz.py
    LC_ALL=<your_locale>.utf-8 ./PLCOpenEditor.py
    

    For example,

    LC_ALL=hu_HU.utf-8 ./Beremiz.py
    LC_ALL=hu_HU.utf-8 ./PLCOpenEditor.py
    

Updated